package com.cjy.runnable.demo2;

/**
 * @author Cheng JiYe
 * @description:
 * @date 2021/4/24 23:31
 */
public class ThreadDemo {
  public static void main(String[] args) {
    // 定义Runnable子类对象
    MyThread2 my = new MyThread2();
    // 系统自动设置线程名称
    new Thread(my).start();
    // 手工设置线程名称
    new Thread(my, "线程A").start();
  }
}
